# -*- coding: utf-8 -*-
from rest_framework import serializers
from .models import *
"""


class Serializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = 
        fields = '__all__'
"""


class MallOrderSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = MallOrder
        fields = '__all__'

class OrderAddressSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = OrderAddress
        fields = '__all__'

class OrderItemSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = OrderItem
        fields = '__all__'

class UserAddressSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = UserAddress
        fields = '__all__'

class UserTokenSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = UserToken
        fields = '__all__'

class MallUserSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = MallUser
        fields = '__all__'

class MallCommentSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = MallComment
        fields = '__all__'

class MallCartSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = MallCart
        fields = '__all__'


class MallGoodsCategorySerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = MallGoodsCategory
        fields = '__all__'

class MallGoodsInfoSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = MallGoodsInfo
        fields = '__all__'


class MallCarouselSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = MallCarousel
        fields = '__all__'


class MallIndexConfigSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = MallIndexConfig
        fields = '__all__'



